package com.examination.system.administration;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.engine.jdbc.Size;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author 寇淇芮
 * @Date 2019/8/28 22:46
 */
@Data
@ToString
@Entity
@ApiModel
@Table(name=AdministrationTableName.QREASCHINA)
@GenericGenerator(name = "qreaschinaId-uuid", strategy = "assigned")
public class Qreaschina implements Serializable {
    @Id
    @ApiModelProperty(value = "地区id",example = "id")
    @GeneratedValue(generator = "qreaschinaId-uuid")
    private String id;
    private String name;
    private String parentid;
    private String parentname;
    private String areacode;
    private String  zipcode;
    private String depth;
}
